<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
		<script type="text/javascript" src="js/jquery-1.2.6.js"></script>
		<script type="text/javascript" src="js/chinese.js"></script>
		<link type="text/css" rel="stylesheet" href="style/style.css" />
		<title></title>
</head>
<body class="gui">

<div id="wrapper">
<div id="content">
	<div id="header">
<div id="logo">
<h1>Control Panel</h1>
</div>
<div id="mainMenu">
	<span><a id="nets" href="wan.htm"><img id="net" src="images/net_small.png" border="0"></a></span>
	<span><a id="cdrs" href="Dialing.htm"><img id="cdr" src="images/cdr_big.png" border="0"></a></span>
	<span><a id="manages" href="downlog.htm"><img id="manage" src="images/manage_small.png" border="0"></a></span>
</div>
<div id="menu">
 <div id="menuMain">
  <ul id="menuMainList">
  	<li><a href="Dialing.htm"><strong><script type="text/javascript">Capture(ivr_menu.basic)</script></strong></a></li>
   	<li><a href="extension.htm"><strong><script type="text/javascript">Capture(ivr_menu.extension_config)</script></strong></a></li>
   	<li class="current"><span><strong><script type="text/javascript">Capture(ivr_menu.trunk_config)</script></strong></span>
   		<div id="menuSub">
     		<ul id="menuSubList">
     			<li id="lineshow"><a href="trunk.htm"><strong><script type="text/javascript">Capture(ivr_menu.trunk)</script></strong></a></li>
      		<li><a href="ip_trunk.htm"><span><strong><script type="text/javascript">Capture(ivr_menu.ip_trunk)</script></strong></span></a></li>
      		<li><a href="ip_trunk_reg.htm"><strong><script type="text/javascript">Capture(ivr_menu.trunk_reg)</script></strong></a></li>
     		</ul>
    	</div>
   		</li>
   	<!--<li><a href="tietrunk.htm"><strong><script type="text/javascript">Capture(ivr_menu.tietrunk)</script></strong></a></li>-->
   	<li><a href="Analog_trunk.htm"><strong><script type="text/javascript">Capture(ivr_menu.system)</script></strong></a></li>
   	<li><a href="Systemcfg.htm"><strong><script type="text/javascript">Capture(ivr_menu.advanced)</script></strong></a></li>
  </ul>
 </div>
</div>
</div>
<div id="main">
<div id="contents">
<form name="filters" action="#" method="post" >
<fieldset>
<legend><script type="text/javascript">Capture(trunk.ip_title)</script></legend>
<div class="frame_tab_layer">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="cmenutitle">
 <tr><td colspan="2" class="frame_tab_button">
 	<script type="text/javascript">document.write("<input class=\"button\" type=\"button\" name=\"add_extension\" value=\"" + trunk.add + "\" onclick=\"window.location.href='add_ip_trunk.htm'\" />");</script>
 	<script type="text/javascript">document.write("<input class=\"button\" type=\"button\" name=\"delete_extension\" value=\"" + trunk.del + "\" onclick=\"deleteTrunk();\" />");</script>
 	<script type="text/javascript">document.write("<input class=\"button\" type=\"button\" name=\"extension_batch\" value=\"" + trunk.batch + "\" onclick=\"window.location.href='ip_trunk_batch.htm'\" />");</script>
<script type="text/javascript">document.write("<input class=\"button\" type=\"button\" name=\"extension_stat\" value=\"" + trunk.stat + "\" onclick=\"window.location.href='ip_trunk_stat.htm'\" />");</script>
</td></tr>
<tr>
<td class="frame_tab_left"><label for="line_id"><script type="text/javascript">Capture(trunk.ID)</script></label></td>
<td class="frame_tab_right"><select name="line_id" id="line_id" style="width:100px;" onChange="changeSelect('line_id');"></select>
<span style="padding-left:20px;">&#160;</span>
<label for="id457"><script type="text/javascript">Capture(trunk.enable)</script></label>
<span style="padding-left:10px;">&#160;</span>
<input type="checkbox" name="id457" id="id457"/>
</td>
</tr>
<tr>
<td class="frame_tab_left"><span class="errormsg" id="img401">&#160;</span>&#160;<label for="id401"><script type="text/javascript">Capture(trunk.phonenumber)</script></label></td>
<td class="frame_tab_right"><input type="text" name="id401" id="id401"/></td>
</tr>
<tr>
<td class="frame_tab_left"><span class="errormsg" id="img654">&#160;</span>&#160;<label for="id654"><script type="text/javascript">Capture(trunk.concurrent)</script></label></td>
<td class="frame_tab_right">
<input type="text" name="id654" id="id654" value="1"/>
</td>
</tr>
<tr>
<td class="frame_tab_left"><label for="id433"><script type="text/javascript">Capture(trunk.registration)</script></label></td>
<td class="frame_tab_right">
<input type="checkbox" name="id433" id="id433"/>
</td>
</tr>
<tr>
<td class="frame_tab_left"><span class="errormsg" id="img432">&#160;</span>&#160;<label for="id432"><script type="text/javascript">Capture(trunk.password)</script></label></td>
<td class="frame_tab_right">
<input type="password" name="id432" id="id432" value=" " />
</td>
</tr>
<tr>
<td class="frame_tab_left"><span class="errormsg" id="img469">&#160;</span>&#160;<label for="id469"><script type="text/javascript">Capture(trunk.DID)</script></label></td>
<td class="frame_tab_right"><input type="text" name="id469" id="id469" onblur="read469();"/></td>
</tr>
<tr>
<td class="frame_tab_left"><label for="id447"><script type="text/javascript">Capture(trunk.outbound)</script></label></td>
<td class="frame_tab_right">
	<input type="radio" name="id447" id="id447_1" value="off"/><span id="s_447_1"><script type="text/javascript">Capture(trunk.outbound_option1)</script></span>
	<span style="padding-left:20px;"></span>
	<input type="radio" name="id447" id="id447_2" value="on"/><span id="s_447_2"><script type="text/javascript">Capture(trunk.outbound_option2)</script></span>
	</td>
</tr>
<tr id="tr468">
<td class="frame_tab_left"><label for="id468"><script type="text/javascript">Capture(trunk.greeting)</script></label></td>
<td class="frame_tab_right">
<select name="id468" id="id468">
<option value=""><script type="text/javascript">Capture(trunk.attendent)</script></option>
</select>
</td>
</tr>
<tr id="tr594">
<td class="frame_tab_left"><label for="id594"><script type="text/javascript">Capture(trunk.recording)</script></label></td>
<td class="frame_tab_right"><input type="checkbox" name="id594" id="id594" /></td>
</tr>
<tr id="tr571">
<td class="frame_tab_left"><span class="errormsg" id="img571">&#160;</span>&#160;<label for="id571"><script type="text/javascript">Capture(trunk.server)</script></label></td>
<td class="frame_tab_right"><input type="text" name="id571" id="id571" /></td>
</tr>
<tr id="tr573">
<td class="frame_tab_left"><span class="errormsg" id="img573">&#160;</span>&#160;<label for="id573"><script type="text/javascript">Capture(trunk.sub_domain)</script></label></td>
<td class="frame_tab_right"><input type="text" name="id573" id="id573" /></td>
</tr>
</table>
</div>
</fieldset>
		<div class="submitFooter">
<script type="text/javascript">
//<![CDATA[
submitFooterButton(1,0);
//]]>
</script>
</div>
</form>
</div>
</div>
<br/>
<div id="helpContainer">
<div id="help">
<div><h2><img src="images/help_title.png" border="0"><script type="text/javascript">Capture(share.help)</script></h2></div>
<dl>
<dt class="term"><script type="text/javascript">Capture(trunk.DID)</script></dt>
<dd class="definition"><script type="text/javascript">Capture(trunk.DID_note)</script></dd>
</dl>
</div>
</div>

<div id="floatKiller"></div>
<div id="statusInfo">

<div class="info"><span id="loginuser"></span></div>
<!--<div class="info"><script type="text/javascript">Capture(share.logintime)</script><span id="uptime"></span></div>-->
<div class="info"><button class="logout" onclick="reboot();"><img src="images/reboot.gif" border="0">&#160;<script type="text/javascript">Capture(tools.td10)</script></button><button class="logout" onclick="logout();"><img src="images/logout.gif" border="0">&#160;<script type="text/javascript">Capture(share.logout)</script></button></div>
</div>

</div>
</div>
<div id="lock_div">&nbsp; </div>
<div id="lock_div2">&nbsp;</div>
<div id="message_panel"><span id="mess">&nbsp;</span><br/>
  <br/>
  <img src="images/jd.gif"/>
</div><script type="text/javascript">
	setTimeout("height_div()",500);
	ivr_load();
		</script>
<script type="text/javascript" src="lib.js"></script>
<script type="text/javascript" src="js/message_panel.js"></script>
<script type="text/javascript" src="js/getSelectList.js"></script>
<script type="text/javascript">
	if(lineshow("4001")){
	var sendtext = "&id=4021&id=771";
	getSelectList(sendtext);
}
	$("[name=submit]").click(function () {
		if($("[name=line_id]").val()!==""&&$("[name=line_id]").val()){
		$(".errormsg").html('');
		var nonames = new Array("submit","extension_batch","extension_stat","add_extension","ip_extension_batch","ip_extension_stat","id366","id584","delete_extension","id469");
		var settext = getSetText(nonames);
		if($("#id469").val()!==""&&$("#id469").val()){
			settext+="&id437=on&id469="+$("#id469").val();
			}else{
				settext+="&id437=off&id469="+$("#id469").val();
			}
		settext=settext.replace(/\#/g,"%23");
		submitform(modules["set_data"],settext);
	}else{
		//show_message("err",msg.selectline);
		alert(msg.selectline);
		}
	});
	
		function read469(){
		if($("#id469").val()!=""){
			$("#s_447_1").html(trunk.outbound_option4);
			$("#s_447_2").html(trunk.outbound_option3);
			$("#id447_2").attr("checked",true);
		}else{
			$("#s_447_1").html(trunk.outbound_option1);
			$("#s_447_2").html(trunk.outbound_option2);
		}
		}
		function read(){
		if($("#id469").val()!=""){
			$("#s_447_1").html(trunk.outbound_option4);
			$("#s_447_2").html(trunk.outbound_option3);
		}else{
			$("#s_447_1").html(trunk.outbound_option1);
			$("#s_447_2").html(trunk.outbound_option2);
		}
	}
</script>
</body>
</html>
